package com.siriframe.user.controller;

import com.siriframe.user.excel.UserExcelExport;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping(value = "userExport")
@Slf4j
public class UserExportController {

    @Resource
    private UserExcelExport userExcelExport;

    @GetMapping("exportData")
    public void exportData() {
        //指定数据条件
        Map<String, Object> map = new HashMap<>();
        userExcelExport.exportWithBigData("用户列表", map);
    }
}
